Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor issue with service vm oneiso vm1 (trying to install to zvol) #24

Open
hxw opened this issue Feb 13, 2015 · 2 comments
Open

minor issue with service vm oneiso vm1 (trying to install to zvol) #24

hxw opened this issue Feb 13, 2015 · 2 comments

Comments

@hxw
Copy link

hxw commented Feb 13, 2015

The vm script appear to ignore the value of vm_dev_type in the vm.conf file when booting install CD
using a command like service vm oneiso vm1

This line hard codes image in the device map

line 312:  echo "(hd0) $host_vmdir/$1/${1}.img" > $host_vmdir/$1/device.map

The workaround is to create vm1.img as a symlink to the right zvol. Perhaps in the case of a non-img setting the mkvm.sh could create this link just as it creates a symlink to the iso.

with the symlink in place everything worked smoothly, thanks

@michaeldexter
Copy link
Owner

This sounds like two other requests that I am finally testing:

  •   echo "(hd0) $host_vmdir/$1/${1}.img" > $host_vmdir/$1/device.map
    
  •   echo "(hd0) $vm_device" > $host_vmdir/$1/device.map
    

Please give that a try and see it works as expected.

@michaeldexter
Copy link
Owner

Note that this will create a device.map with (hd0) set to the ISO in "iso" mode. This should be fine for setup but would probably not work if someone wanted to interrogate a configured hard drive from the live ISO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants