Hi virt, im stumped... any help would be appreciated. I normally create my VMs like this: base="http://mirror.pnl.gov/fedora/linux/releases/20/Fedora/x86_64/os/" sudo virt-install --hvm --name $vm_name$i --ram 4000 \ --disk path=/VirtualMachines/$vm_name$i,size=30 \ --location $base -x "ks=http://xxx.os21.ks$kx" HOWEVER... I'm finding that my VMs dont boot after i restart the Host. My question is: Where is virt-install writing the boot disk to? I get a error message that the "boot failed" because the hard disk, is not a bootable disk. But I can't imagine where else to boot from ? Because I point my --location of the original boot to the source code repo itself.... ANY help would be appreciated thanks!
Giuseppe Scrivano
2014-Apr-22 08:02 UTC
Re: [libvirt-users] "virt-install" source location boot disk
Jay Vyas <jayunit100@gmail.com> writes:> Hi virt, im stumped... any help would be appreciated. > > I normally create my VMs like this: > > base="http://mirror.pnl.gov/fedora/linux/releases/20/Fedora/x86_64/os/" > > sudo virt-install --hvm --name $vm_name$i --ram 4000 \ > --disk path=/VirtualMachines/$vm_name$i,size=30 \ > --location $base -x "ks=http://xxx.os21.ks$kx" > > HOWEVER... I'm finding that my VMs dont boot after i restart the Host. > > My question is: Where is virt-install writing the boot disk to?I don't see anything wrong in your command line and it should just work. How does your kickstart file look like? And your domain XML definition (you can get it with "virsh dumpxml $vm_name$i")? Regards, Giuseppe
Jay Vyas
2014-Apr-22 09:24 UTC
Re: [libvirt-users] "virt-install" source location boot disk
Hi Giuseppe and thanks for the response............ Heres some more info: Here is my kickstart... maybe the "--bootloader" argument is wrong in some way? # Put this in pastebin or some other public url # Kickstart file automatically generated by anaconda. #version=DEVEL install cdrom lang en_US.UTF-8 keyboard us network --onboot yes --device eth0 --bootproto dhcp --noipv6 timezone --utc America/New_York rootpw --iscrypted $6$9bRPXTZZMy0FNl2A$lgY.MS3pZ.0PVg4o3AQeJOydPwGVphdKT07tHlJUmdoRTz4UQQ/L54ny0QHkdubMquqkr4jw37DxmM0FL5kRn1 selinux --enforcing authconfig --enableshadow --passalgo=sha512 firewall --service=ssh #Disable graphical stuff skipx #text # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work # Uncommented by j zerombr clearpart --all autopart #ip=192.168.122.99 network --bootproto=static --ip=192.168.122.100 --netmask=255.255.255.0 --gateway=192.168.122.1 --nameserver=192.168.122.1 bootloader --location=mbr --timeout=5 --append="rhgb quiet" .... %end Some more details: This is what my "df" output is Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup-lv_root 26552588 2244364 22959412 9% / tmpfs 1978444 0 1978444 0% /dev/shm /dev/sda1 495844 33710 436534 8% /boot On Tue, Apr 22, 2014 at 4:02 AM, Giuseppe Scrivano <gscrivan@redhat.com>wrote:> Jay Vyas <jayunit100@gmail.com> writes: > > > Hi virt, im stumped... any help would be appreciated. > > > > I normally create my VMs like this: > > > > base="http://mirror.pnl.gov/fedora/linux/releases/20/Fedora/x86_64/os/" > > > > sudo virt-install --hvm --name $vm_name$i --ram 4000 \ > > --disk path=/VirtualMachines/$vm_name$i,size=30 \ > > --location $base -x "ks=http://xxx.os21.ks$kx" > > > > HOWEVER... I'm finding that my VMs dont boot after i restart the Host. > > > > My question is: Where is virt-install writing the boot disk to? > > I don't see anything wrong in your command line and it should just work. > > How does your kickstart file look like? And your domain XML definition > (you can get it with "virsh dumpxml $vm_name$i")? > > Regards, > Giuseppe >-- Jay Vyas http://jayunit100.blogspot.com