Red Hat Bugzilla – Bug 450990
virt-install ks-based guest creation errors during disk initialization part
Last modified: 2009-12-14 16:16:45 EST
Description of problem:
trying to create a guest system using virt-install. ks install start out but
during the disk init part, a prompt appers with the message:
Operation not permitted during write on /dev/xvdb
[Retry Ignore ...
pressed Ignore and goes to an anaconda trace window.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. virt-install -p -n node01 -r 1000 -f /dev/Virtual00VG/lvNODE01 -m
00:16:3e:21:c5:c1 -w network:public1 --os-type=linux --os-variant=rhel5
--arch=x86_64 -l /var/ftp/pub/rhel5u2/rhel-5-server-x86_64-dvd.iso -x
ks=http://192.168.222.1/rhel5u2/node01_ks.cfg ksdevice=eth0 --vnc --debug
2. check the vnc session a prompt appears
3. press ignore and trace dump appears and then prompts to reboot
guest creation is unsuccessful
disk initialization should be ok
anaconda trace and virt-install log (combined) attached.
Created attachment 309026 [details]
anacdump and virt-install log
Created attachment 309027 [details]
i've recreated the LV:
lvcreate -L 30G -n lvNODE01 Virtual00VG
and re-installed using the same virt-install syntax, and it got through the
previously, lvNODE01 used in guest system is created using this syntax:
lvcreate -L 30G -i 2 -n lvNODE01 Virtual00VG
# Virtual00VG has 2 x 100G HP EVA8K LUN
so does my problem has something to do with the striped LV?
Your virt-install command line only specifies a single disk (ie f
/dev/Virtual00VG/lvNODE01) which will become xvda. Your kickstart file
specifies two disks xvda and xvdb. Since xvdb does not exit (you didn't ask
virt-install for 2 disks) it will obvious fail to install.