Sorry for the newbie nature of this problem, however I''ve run into an issue... I''m sure I''m missing something simple... I''ve set aside sda5 and 6 for this vm. Any pointers? root@halo0:~# xc_dom_create.py -f /etc/xc/dom1 Parsing config file ''/etc/xc/dom1'' VM image : "/boot/xenolinux.gz" VM ramdisk : "" VM memory (MB) : "320" VM IP address(es) : "192.168.1.2" VM block device(s) : "phy:sda5,sda5,w; phy:sda6,sda2,w" VM cmdline : "ip=192.168.1.2:169.254.1.0:10.64.240.1:255.255.248.0::eth0:off root=/dev/sda1 ro " Error looking up phy:sda5 With an unmodified defaults file... root@halo0:~# xc_dom_create.py -f /etc/xc/defaults -Dvmid=1 Parsing config file ''/etc/xc/defaults'' /usr/lib/python2.3/site-packages/XenoUtil.py:96: FutureWarning: x<<y losing bits or changing sign will return a long in Python 2.4 and up a = ( (string.atoi(l[0])<<24) | (string.atoi(l[1])<<16) | VM image : "/boot/xenolinux.gz" VM ramdisk : "" VM memory (MB) : "256" VM IP address(es) : "10.64.244.12; 169.254.1.1" VM block device(s) : "phy:sda8,sda1,w; phy:sda6,sda6,r" VM cmdline : "ip=10.64.244.12:169.254.1.0:10.64.240.1:255.255.248.0::eth0:off root=/dev/sda1 ro 4 VMID=1 usr=/dev/sda6" Error looking up phy:sda8 root@halo0:~# (while I''m at it, can I get at the 2nd serial port from inside dom0?) Thanks, -mKaegler -- Michael Kaegler, Information Technology Marist College, 3399 North Road, Poughkeepsie, NY 12601 Phone: 845-575-3128 http://www.nsfgrid.marist.edu Beware of quantum ducks. Quark, Quark. ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
As usual, one finds the answer on their own right after asking a devel list. /usr/lib/python2.3/site-packages/XenoUtil.py hardcoded the location of sfdisk to /sbin/sfdisk, when in fact slackware 9.1 places it at /usr/sbin/sfdisk. I just removed the /sbin/ bit and let my PATH take care of finding it. Cheers, -mKaegler>Sorry for the newbie nature of this problem, however I''ve run into an issue... >I''m sure I''m missing something simple... I''ve set aside sda5 and 6 >for this vm. >Any pointers? > > >root@halo0:~# xc_dom_create.py -f /etc/xc/dom1 >Parsing config file ''/etc/xc/dom1'' >VM image : "/boot/xenolinux.gz" >VM ramdisk : "" >VM memory (MB) : "320" >VM IP address(es) : "192.168.1.2" >VM block device(s) : "phy:sda5,sda5,w; phy:sda6,sda2,w" >VM cmdline : >"ip=192.168.1.2:169.254.1.0:10.64.240.1:255.255.248.0::eth0:off >root=/dev/sda1 ro " >Error looking up phy:sda5 > > >With an unmodified defaults file... > >root@halo0:~# xc_dom_create.py -f /etc/xc/defaults -Dvmid=1 >Parsing config file ''/etc/xc/defaults'' >/usr/lib/python2.3/site-packages/XenoUtil.py:96: FutureWarning: x<<y >losing bits or changing sign will return a long in Python 2.4 and up > a = ( (string.atoi(l[0])<<24) | (string.atoi(l[1])<<16) | >VM image : "/boot/xenolinux.gz" >VM ramdisk : "" >VM memory (MB) : "256" >VM IP address(es) : "10.64.244.12; 169.254.1.1" >VM block device(s) : "phy:sda8,sda1,w; phy:sda6,sda6,r" >VM cmdline : >"ip=10.64.244.12:169.254.1.0:10.64.240.1:255.255.248.0::eth0:off >root=/dev/sda1 ro 4 VMID=1 usr=/dev/sda6" >Error looking up phy:sda8 > >root@halo0:~# > > >(while I''m at it, can I get at the 2nd serial port from inside dom0?) >Thanks, >-mKaegler > >-- >Michael Kaegler, Information Technology >Marist College, 3399 North Road, Poughkeepsie, NY 12601 >Phone: 845-575-3128 http://www.nsfgrid.marist.edu > >Beware of quantum ducks. Quark, Quark. > > >------------------------------------------------------- >This SF.Net email is sponsored by: SourceForge.net Broadband >Sign-up now for SourceForge Broadband and get the fastest >6.0/768 connection for only $19.95/mo for the first 3 months! >http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/xen-devel-- Michael Kaegler, Information Technology Marist College, 3399 North Road, Poughkeepsie, NY 12601 Phone: 845-575-3128 http://www.nsfgrid.marist.edu Beware of quantum ducks. Quark, Quark. ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> As usual, one finds the answer on their own right after asking a devel list. > /usr/lib/python2.3/site-packages/XenoUtil.py hardcoded the location > of sfdisk to /sbin/sfdisk, when in fact slackware 9.1 places it at > /usr/sbin/sfdisk. I just removed the /sbin/ bit and let my PATH take > care of finding it.Anyone want to knock up a patch that looks in both locations and return a more useful error message on failure? ;-) I guess it would probably be cleaner if we just read this out of /proc/partitions rather than using sfdisk... Cheers, Ian ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > As usual, one finds the answer on their own right after asking a devel list. > > /usr/lib/python2.3/site-packages/XenoUtil.py hardcoded the location > > of sfdisk to /sbin/sfdisk, when in fact slackware 9.1 places it at > > /usr/sbin/sfdisk. I just removed the /sbin/ bit and let my PATH take > > care of finding it. > > Anyone want to knock up a patch that looks in both locations and > return a more useful error message on failure? ;-)Maybe check ''sfdisk'', ''/sbin/sfdisk'', then ''/usr/sbin/sfdisk''?> I guess it would probably be cleaner if we just read this out of > /proc/partitions rather than using sfdisk...Unfortunately the proc file lists blocks rather than sectors, so you can''t do sector-accurate calculations based on it. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> Maybe check ''sfdisk'', ''/sbin/sfdisk'', then ''/usr/sbin/sfdisk''? > > > I guess it would probably be cleaner if we just read this out of > > /proc/partitions rather than using sfdisk...I''d check ''sfdisk'' last, using PATH as a last resort.> Unfortunately the proc file lists blocks rather than sectors, so you > can''t do sector-accurate calculations based on it.Oh yeah, I remember why I wrote that code now ;-) Ian ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel