Hi i''m trying to install Solaris10 on a virtual machine created by xVM command virt-install. However, after configuring the installation the utility fails the installation with the following error message: - "Preparing system for Solaris install Configuring disk (c0d0) - Creating Fdisk partition table ERROR: Could not create Fdisk partition table ERROR: Could not label disks ERROR: Could not update disks with new configuration Could not update disks with new configuration" Any idea how I can fix this problem? Do have a look below at what I have done to arrive at this situation. Also the virt-install command hangs in there and the only way to terminate is by either killing it or by using xm destroy. I am installing the OS from a 3.6 GB iso image from the local file system on Solaris in Domain-0 on x86 and the installation is being done on one of the SAS drives on the x86 system. I also tried installing the image on a local file ( around 10GB) but that too failed with the same error message. The command I used was: - virt-install --accelerate --arch x86 --location /export/home/sol-nv-b79b-x86-dvd.iso --noacpi --nographics -p --ram 600 --vcpus 1 --name xvm1 --file /dev/rdsk/c2t1d0 The initial output on the console is: - Starting install... Creating domain... 0 B 02:54 v3.0.4-1-xvm chgset ''Sun Jan 06 11:43:59 2008 -0800 13229:fc49a937b8f7'' SunOS Release 5.11 Version snv_79a 64-bit Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Configuring /dev Solaris Interactive Text (Console session) Using install cd in /dev/dsk/c0d1p0 Using RPC Bootparams for network configuration information. Attempting to configure interface xnf0... Skipped interface xnf0 Reading ZFS config: done. Domain is created right away: - # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 387 2 r----- 364.7 xvm1 1 599 1 -b---- 93.4 Later i fire installation from the following screen: - =========================================================================== Installation Option: Initial Boot Device: c0d0 Client Services: None System Locale: C ( C ) Software: Solaris 11, Entire Distribution File System and Disk Layout: / c0d0s0 6455 MB swap c0d0s1 517 MB /export/home c0d0s7 10401 MB -----Esc-2_Begin Installation Esc-4_Change Esc-5_Exit Esc-6_Help------- I get the following error: - Preparing system for Solaris install Configuring disk (c0d0) - Creating Fdisk partition table ERROR: Could not create Fdisk partition table ERROR: Could not label disks ERROR: Could not update disks with new configuration After I do an "xm destroy xvm1" I see the following message on the installation console: - Domain installation does not appear to have been successful. If it was, you can restart your domain by running ''virsh start xvm1''; otherwise, please restart your installation. Please come back with any suggestions for fixing this issue. Regards, Bhaskar. This message posted from opensolaris.org
> Hi i''m trying to install Solaris10 on a virtual > machine created by xVM command virt-install. However, > after configuring the installation the utility fails > the installation with the following error message: - > "Preparing system for Solaris install > > Configuring disk (c0d0) > - Creating Fdisk partition table > Could not create Fdisk partition table > > ERROR: Could not label disks > > ERROR: Could not update disks with new configuration > > Could not update disks with new configuration" > > Any idea how I can fix this problem? Do have a look > below at what I have done to arrive at this > situation. > > Also the virt-install command hangs in there and the > only way to terminate is by either killing it or by > using xm destroy. > > I am installing the OS from a 3.6 GB iso image from > the local file system on Solaris in Domain-0 on x86 > and the installation is being done on one of the SAS > drives on the x86 system. > I also tried installing the image on a local file ( > around 10GB) but that too failed with the same error > message. > > The command I used was: - > virt-install --accelerate --arch x86 --location > /export/home/sol-nv-b79b-x86-dvd.iso --noacpi > --nographics -pLooks like you try to create SNV79b PVM at SNV (b <=84) Dom0 1.SNV79 is not S10. 2. Would try to use regular file like /export/home/images/sol.img or ZFS file system with --f key --ram 600 --vcpus 1 --name xvm1> --file /dev/rdsk/c2t1d0 > > The initial output on the console is: - > > Starting install... > Creating domain... > 0 B > 02:54 > v3.0.4-1-xvm chgset ''Sun Jan 06 11:43:59 2008 -0800 > 13229:fc49a937b8f7'' > SunOS Release 5.11 Version snv_79a 64-bit > Copyright 1983-2007 Sun Microsystems, Inc. All > rights reserved. > Use is subject to license terms. > Configuring /dev > Solaris Interactive Text (Console session) > Using install cd in /dev/dsk/c0d1p0 > Using RPC Bootparams for network configuration > information. > Attempting to configure interface xnf0... > Skipped interface xnf0 > Reading ZFS config: done. > > Domain is created right away: - > > # xm list > Name ID Mem > VCPUs State Time(s) > Domain-0 0 387 > 2 r----- 364.7 > 1 599 1 > -b---- 93.4 > Later i fire installation from the following screen: > - > > =====================================================> ====================> > Installation Option: Initial > Boot Device: c0d0 > Client Services: None > System Locale: C ( C ) > Software: Solaris 11, Entire > Distribution > > File System and Disk Layout: / > c0d0s0 6455 MB > swap c0d0s1 517 MB > /export/home c0d0s7 10401 > MB > > > -----Esc-2_Begin Installation Esc-4_Change > Esc-5_Exit Esc-6_Help------- > get the following error: - > > Preparing system for Solaris install > > Configuring disk (c0d0) > - Creating Fdisk partition table > Could not create Fdisk partition table > > ERROR: Could not label disks > > ERROR: Could not update disks with new configuration > > After I do an "xm destroy xvm1" I see the following > message on the installation console: - > > Domain installation does not appear to have been > successful. If it was, you can restart your domain > by running ''virsh start xvm1''; otherwise, please > restart your installation. > > Please come back with any suggestions for fixing this > issue. > > Regards, > Bhaskar.This message posted from opensolaris.org
My guess would be, that:- --file /dev/rdsk/c2t1d0 causes problems. Try to follow a sample at http://www.opensolaris.org/os/community/xen/docs/virtinstall/ :- ********************************************************************** # virt-install -n solarisPV --paravirt -r 1024 \ --nographics -f /export/solarisPV/root.img -s 16 \ -l /ws/xvm-gate/public/isos/72-0910/solarisdvd.iso ******************************************************************** This message posted from opensolaris.org
View also:- http://blogs.sun.com/shalon/entry/virt_install_demo This message posted from opensolaris.org
Bhaskar Jayaraman
2008-Apr-15 09:11 UTC
Re: xVM virt-install fails while installing the OS
Hi thanks for the replies, I have tried with both disks and files to install the solaris image but I keep getting the fdisk error. Now I''m getting an additional message that assumes something about a Read only file system: - Configuring disk (c0d0) - Creating Fdisk partition table ERROR: Could not create Fdisk partition table ERROR: Could not label disks ERROR: Could not update disks with new configuration mkdir: "/a/var/sadm/launcher": Read-only file system Could not update disks with new configuration This message posted from opensolaris.org
Please, submit the command to create file /export/home/images/solaris.img with size 15 GB This message posted from opensolaris.org
Bhaskar Jayaraman
2008-Apr-15 10:37 UTC
Re: xVM virt-install fails while installing the OS
Thanks a lot installation is proceeding fine. I was initially creating a garbage file with mkfile (e.g. mkfile 15000m /export/home/images/solaris.img) and then using it in virt-install. I thought I''ll just give it a shot without creating the file so I deleted it and fired the command once again and it worked. Just checked your reply which says the same so I guess I''m all set. In any case is there any special reason why virt-install should fail on disks during fdisk creation? I tried a lot of things like removing all partitions using format and then using the disk, again using fdisk and then using the s2 disk partition with virt-install but that didn''t work either. Also the ones mentioned in the links pointed out by you like writing zeros to the leading disk blocks. Some time ago I faced some issues with a network install in virt-install. I will come back with some doubts on that soon. Regards, Bhaskar. This message posted from opensolaris.org
I have experience with virt-installs on x86 systems utilizing zfs filesystems. Run format , select disk , run fdisk and create primary partition of type "0ther OS", just say number 3 second SATA drive:- # zpool create xvmpool c1t1d0p3 (first drive would correspond c1t0d0p0). For every sata drive there are five files /dev/rdsk/c1txd0py (y=0,1,2,3,4 number of partition) (x=0,1 two sata drives attached to South Bridge on Intel's board) # zpool list # zfs create -V 20G xvmpool/snv85-disk Proceed as follows:- # virt-install --name Snv85pvm -–ram 1024 --nographics \ --file /dev/zvol/dsk/xvmpool/snv85-disk \ --location /export/home/ISOS/snv85.iso Starting with SNV build 75A it works for sure. This message posted from opensolaris.org _______________________________________________ xen-discuss mailing list xen-discuss@opensolaris.org
> Thanks a lot installation is proceeding fine. I was > initially creating a garbage file with mkfile (e.g. > mkfile 15000m /export/home/images/solaris.img) andRun:- # man dd it helps.> then using it in virt-install. I thought I''ll just > give it a shot without creating the file so I deleted > it and fired the command once again and it worked.This message posted from opensolaris.org
What are the permissions on the backing file in dom0? Looks like you don''t have write permissions turned on. Bhaskar Jayaraman wrote:> Hi thanks for the replies, I have tried with both disks and files to install the solaris image but I keep getting the fdisk error. Now I''m getting an additional message that assumes something about a Read only file system: - > > Configuring disk (c0d0) > - Creating Fdisk partition table > > ERROR: Could not create Fdisk partition table > > ERROR: Could not label disks > > ERROR: Could not update disks with new configuration > mkdir: "/a/var/sadm/launcher": Read-only file system > > Could not update disks with new configuration > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org
Bhaskar Jayaraman
2008-Apr-17 05:20 UTC
Re: xVM virt-install fails while installing the OS
Thanks I''ll try this on the next virtual machine I install. Currently Im running low on memory space but no so much on disks. Really appreciate your reply. Regards, Bhaskar. This message posted from opensolaris.org