Submitted by mcordas on Mon, 12/12/2011 - 10:40 Pro Licensee
For test purpose, we would like to boot a VM on a CD.
Is it possible to boot on an iso ?
Is it possible to boot on one of Cloudmin's System Images ?
Didn't find a procedure in Cloudmin's documentation.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Mon, 12/12/2011 - 11:42 Comment #1
Yes, this is possible - on the Create System page, you can select the Empty System tab and then choose an ISO image to boot from. This is typically used when installing a VM from a cd or DVD.
Submitted by JamieCameron on Mon, 12/12/2011 - 11:49 Comment #2
Also, see http://virtualmin.com/documentation/cloudmin/virtualization/empty
Submitted by mcordas on Mon, 12/12/2011 - 12:03 Pro Licensee Comment #3
Yes, I know that, and that's how we created our KVM guests.
But What I want to know is how to boot an existing VM on a CD. Is that possible ?
Submitted by JamieCameron on Mon, 12/12/2011 - 12:15 Comment #4
Ok, in that case you can do the following :
You should then be able to use the Graphical Console page to access the console..
Submitted by mcordas on Mon, 12/12/2011 - 12:16 Pro Licensee Comment #5
To be complete, I must say that before asking here, I tried this :
But when I boot the VM, I get a "No bootable device" message.
So I guess it's not possible to boot a VM on a plain old iso.
What's the best way to do that ?
Thanks.
Submitted by mcordas on Mon, 12/12/2011 - 12:18 Pro Licensee Comment #6
Our comments got posted on the same minute... Lol...
Did I miss something ? Should an iso do the trick ?
Submitted by JamieCameron on Mon, 12/12/2011 - 12:21 Comment #7
That should work .. at least, it does for me.
Is this a KVM or Xen VM? If Xen, is it using paravirtualization or HVM? You can see this on the Edit System page.
Unfortunately a Xen VM using paravirtualization cannot be booted from a CD.
Submitted by mcordas on Mon, 12/12/2011 - 12:25 Pro Licensee Comment #8
IT's a KVM guest running on a CentOS 5.7 host, with virtio_blk.
The complete message is :
"Booting from CD-Rom... CDROM boot failure code : 0003 Boot failed: could not read the boot disk
Fatal: no bootable device."
The boot disk is an official CentOS6 boot CD iso.
Submitted by JamieCameron on Mon, 12/12/2011 - 12:42 Comment #9
I wonder if perhaps KVM doesn't support booting from a CD when virtIO is in use..
What is the command line of the KVM process for this VM?
Submitted by mcordas on Mon, 12/12/2011 - 12:49 Pro Licensee Comment #10
Here's the process line :
/usr/libexec/qemu-kvm -name xxxx.yyyy.net -m 1024 -drive file=/dev/VolGroup00/xxxx_yyyy_net_img,media=disk,index=0,if=virtio,boot=on -drive index=1,media=disk,file=/dev/VolGroup00/xxxx_yyyy_net_2_img,if=virtio -drive index=2,media=cdrom,file=/root/CentOS-6.0-x86_64-netinstall.iso,if=virtio -boot d -net tap,vlan=0,script=/kvm/xxxx.yyyy.net-eth0.sh -net nic,vlan=0,macaddr=xx:xx:xx:xx:xx:xx,model=virtio -vnc :2,password -monitor tcp:127.0.0.1:40001,server
It has 2 lvm drives (dev/vda and /dev/vdb).
Submitted by JamieCameron on Mon, 12/12/2011 - 13:07 Comment #11
Ok, it looks like the CD being on virtIO is the issue - this is really a Cloudmin bug, as it should always use IDE for CDs.
The work-around to fix this is as follows :
root
cloudmin list-systems --host xxxx.yyyy.net --id-only
/etc/webmin/servers
with that IDSubmitted by mcordas on Mon, 12/12/2011 - 13:21 Pro Licensee Comment #12
Yep. it works...
Thanks !
Submitted by JamieCameron on Mon, 12/12/2011 - 13:36 Comment #13
Great - I will include a proper fix for this in the 6.0 Cloudmin release.
Submitted by Issues on Mon, 12/26/2011 - 13:45 Comment #14
Automatically closed -- issue fixed for 2 weeks with no activity.