Skip to contentSkip to conversation

problem creating a new domain

DISCUSSION Sanjay Kumar 4 participants 7 messages Oct 17, 2004 – Oct 22, 2004

lore
Share & tools
lore
#0 lore raw

Hi Folks,
I am using xen1.2.
I create the disk image as described in the Xen2.0 user manual chapter 5.

#dd if=/dev/zero of=vm1disk bs=1k seek=6144k count=1
#losetup /dev/loop1 vm1disk
#mkfs -t ext3 /dev/loop1
#mount /dev/loop1 /mnt

#cp -ax /<directory>/ /mnt/ /* I do this instead of copying the whole / directory because I don't want some of the directories in Dom 1 */

I modify /mnt/etc/fstab to put /dev/sda1 to root

# umount /dev/loop1

then I put this line in /etc/xc/defaults (I used a copy of it called dom1)

vbd_list = [ ('phy:loop1','sda1','w' ) ]

After this I try to create the dom1 by saying but I get an error.

#xc_dom_create.py -D vmid=1 -f dom1
Parsing config file 'dom1'
VM image : "/boot/xenolinux.gz"
VM ramdisk : ""
VM memory (MB) : "64"
VM IP address(es) : "130.207.98.36; 169.254.1.1"
VM block device(s) : "phy:loop1,sda1,w"
VM cmdline : "ip=130.207.98.36:169.254.1.0:130.207.98.1:255.255.255.0::eth0:off root=/dev/sda1 ro 4 VMID=1 usr=/dev/sda6"
Error looking up phy:loop1

Can someone please help me with this error?

Thanks,
Sanjay

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#1 lore raw
Quoted 3 lines

Hi Folks,
I am using xen1.2.
I create the disk image as described in the Xen2.0 user manual chapter 5.

Sorry but that won't work :-(

Xen 1.2 can only export sections of physical disks (e.g. partitions, whole disks, or Xen Virtual Disks) to other domains. If you want to store filesystems in disk files, you should move to Xen 2.0-beta (soon to be Xen 2.0-release).

The nearest you can get on Xen 1.2 is to create a Virtual Disk and then use that. Tying yourself to 1.2 is probably not a good idea though - Virtual Disks aren't supported by 2.0. We'd certainly prefer people to move to 2.0 now - it's stable and virtually release-ready and has a whole load of new features, improved tools and better hardware support.

A good way to install a new domain's filesystem is using debootstrap (as described in the appendix of the manual).

Let us know how you get on.

HTH,
Mark

Quoted 38 lines

#dd if=/dev/zero of=vm1disk bs=1k seek=6144k count=1
#losetup /dev/loop1 vm1disk
#mkfs -t ext3 /dev/loop1
#mount /dev/loop1 /mnt

#cp -ax /<directory>/ /mnt/ /* I do this instead of copying the whole / directory because I don't want some of the directories in Dom 1 */

I modify /mnt/etc/fstab to put /dev/sda1 to root

# umount /dev/loop1

then I put this line in /etc/xc/defaults (I used a copy of it called dom1)

vbd_list = [ ('phy:loop1','sda1','w' ) ]

After this I try to create the dom1 by saying but I get an error.

#xc_dom_create.py -D vmid=1 -f dom1
Parsing config file 'dom1'
VM image : "/boot/xenolinux.gz"
VM ramdisk : ""
VM memory (MB) : "64"
VM IP address(es) : "130.207.98.36; 169.254.1.1"
VM block device(s) : "phy:loop1,sda1,w"
VM cmdline : "ip=130.207.98.36:169.254.1.0:130.207.98.1:255.255.255.0::eth0:off root=/dev/sda1 ro 4 VMID=1 usr=/dev/sda6"
Error looking up phy:loop1

Can someone please help me with this error?

Thanks,
Sanjay

Quoted 2 lines

------------------------------------------------------- This SF.net
email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Xen-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#2 lore raw

Hi Mark,
I switched to Xen2.0 with linux 2.4.27 kernel for dom0

now I create the virtual disk in the same way as I described below.

now when I try to boot another domain i see problems with DHCP. below are the logs

Using config file "/etc/xen/dom1".
Started domain ExampleDomain, console on port 9609 ************ REMOTE CONSOLE: CTRL-] TO QUIT ********
Linux version 2.4.27-xenU (root@andrea) (gcc version 3.1.1) #3 Tue Oct 19 13:56:24 EDT 2004
On node 0 totalpages: 16384
zone(0): 4096 pages.
zone(1): 12288 pages.
zone(2): 0 pages.
Kernel command line: ip=:1.2.3.4::::eth0:dhcp root=/dev/hda1 ro 4 Initializing CPU#0
Xen reported: 2193.379 MHz processor.
Calibrating delay loop... 4404.01 BogoMIPS
Memory: 62768k/65536k available (1341k kernel code, 2768k reserved, 267k data, 60k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes) Inode cache hash table entries: 4096 (order: 3, 32768 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
CPU: L1 I cache: 12K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Intel(R) Pentium(R) 4 CPU 2.20GHz stepping 04
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 [email protected]). Event-channel device installed.
Xen virtual console successfully installed as tty
Starting Xen Balloon driver
pty: 256 Unix98 ptys configured
[XEN] Initialising virtual block device driver
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 [XEN] Initialising virtual ethernet driver.
[XEN] Netfront recovered tx=0 rxfree=0
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192) Sending DHCP requests ....... timed out

Here Sending DHCP requests keep timing out and it keeps retrying. so boot doesn't proceed beyond this point.

Can anybody please let me know what I might be doing wrong.

Thanks,
Sanjay

----------------------------------
http://www.cc.gatech.edu/~ksanjay/

Quoted 17 lines · M.A. Williamson
Quoted 3 lines

Hi Folks,
I am using xen1.2.
I create the disk image as described in the Xen2.0 user manual chapter 5.

Sorry but that won't work :-(

Xen 1.2 can only export sections of physical disks (e.g. partitions, whole disks, or Xen Virtual Disks) to other domains. If you want to store filesystems in disk files, you should move to Xen 2.0-beta (soon to be Xen 2.0-release).

The nearest you can get on Xen 1.2 is to create a Virtual Disk and then use that. Tying yourself to 1.2 is probably not a good idea though - Virtual Disks aren't supported by 2.0. We'd certainly prefer people to move to 2.0 now - it's stable and virtually release-ready and has a whole load of new features, improved tools and better hardware support.

Quoted 59 lines

A good way to install a new domain's filesystem is using debootstrap (as described in the appendix of the manual).

Let us know how you get on.

HTH,
Mark

Quoted 50 lines

#dd if=/dev/zero of=vm1disk bs=1k seek=6144k count=1
#losetup /dev/loop1 vm1disk
#mkfs -t ext3 /dev/loop1
#mount /dev/loop1 /mnt

#cp -ax /<directory>/ /mnt/ /* I do this instead of copying the
whole / directory because I don't want some of the directories in Dom 1 */

I modify /mnt/etc/fstab to put /dev/sda1 to root

# umount /dev/loop1

then I put this line in /etc/xc/defaults (I used a copy of it called dom1)

vbd_list = [ ('phy:loop1','sda1','w' ) ]

After this I try to create the dom1 by saying but I get an error.

#xc_dom_create.py -D vmid=1 -f dom1
Parsing config file 'dom1'
VM image : "/boot/xenolinux.gz"
VM ramdisk : ""
VM memory (MB) : "64"
VM IP address(es) : "130.207.98.36; 169.254.1.1"
VM block device(s) : "phy:loop1,sda1,w"
VM cmdline :
"ip=130.207.98.36:169.254.1.0:130.207.98.1:255.255.255.0::eth0:off root=/dev/sda1 ro 4 VMID=1 usr=/dev/sda6"
Error looking up phy:loop1

Can someone please help me with this error?

Thanks,
Sanjay

------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________ Xen-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#3 lore raw

add the parameter (ip "off") in your domain configuration file it will add the parameter ip=off on the kernel boot line and so everything will be ok

mat

Quoted 148 lines · Sanjay Kumar

Hi Mark,
I switched to Xen2.0 with linux 2.4.27 kernel for dom0

now I create the virtual disk in the same way as I described below.

now when I try to boot another domain i see problems with DHCP. below are the logs

Using config file "/etc/xen/dom1".
Started domain ExampleDomain, console on port 9609 ************ REMOTE CONSOLE: CTRL-] TO QUIT ********
Linux version 2.4.27-xenU (root@andrea) (gcc version 3.1.1) #3 Tue Oct 19 13:56:24 EDT 2004
On node 0 totalpages: 16384
zone(0): 4096 pages.
zone(1): 12288 pages.
zone(2): 0 pages.
Kernel command line: ip=:1.2.3.4::::eth0:dhcp root=/dev/hda1 ro 4 Initializing CPU#0
Xen reported: 2193.379 MHz processor.
Calibrating delay loop... 4404.01 BogoMIPS
Memory: 62768k/65536k available (1341k kernel code, 2768k reserved, 267k data, 60k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes) Inode cache hash table entries: 4096 (order: 3, 32768 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
CPU: L1 I cache: 12K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Intel(R) Pentium(R) 4 CPU 2.20GHz stepping 04
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 [email protected]). Event-channel device installed.
Xen virtual console successfully installed as tty
Starting Xen Balloon driver
pty: 256 Unix98 ptys configured
[XEN] Initialising virtual block device driver
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 [XEN] Initialising virtual ethernet driver.
[XEN] Netfront recovered tx=0 rxfree=0
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192) Sending DHCP requests ....... timed out

Here Sending DHCP requests keep timing out and it keeps retrying. so boot doesn't proceed beyond this point.

Can anybody please let me know what I might be doing wrong.

Thanks,
Sanjay

----------------------------------
http://www.cc.gatech.edu/~ksanjay/

Quoted 20 lines · M.A. Williamson
Quoted 3 lines

Hi Folks,
I am using xen1.2.
I create the disk image as described in the Xen2.0 user manual

chapter 5.
Sorry but that won't work :-(

Xen 1.2 can only export sections of physical disks (e.g. partitions, whole disks, or Xen Virtual Disks) to other domains. If you want to store filesystems in disk files, you should move to Xen 2.0-beta (soon to be Xen 2.0-release).

The nearest you can get on Xen 1.2 is to create a Virtual Disk and then use that. Tying yourself to 1.2 is probably not a good idea though - Virtual Disks aren't supported by 2.0. We'd certainly prefer people to move to 2.0 now - it's stable and virtually release-ready and has a whole load of new features, improved tools and better
hardware support.
A good way to install a new domain's filesystem is using debootstrap (as described in the appendix of the manual).

Quoted 56 lines

Let us know how you get on.

HTH,
Mark

Quoted 50 lines

#dd if=/dev/zero of=vm1disk bs=1k seek=6144k count=1
#losetup /dev/loop1 vm1disk
#mkfs -t ext3 /dev/loop1
#mount /dev/loop1 /mnt

#cp -ax /<directory>/ /mnt/ /* I do this instead of
copying the whole / directory because I don't want some of the
directories in Dom 1 */
I modify /mnt/etc/fstab to put /dev/sda1 to root

 # umount /dev/loop1

then I put this line in /etc/xc/defaults (I used a copy of it called dom1)

vbd_list = [ ('phy:loop1','sda1','w' ) ]

After this I try to create the dom1 by saying but I get an error.

#xc_dom_create.py -D vmid=1 -f dom1
Parsing config file 'dom1'

 VM image           : "/boot/xenolinux.gz"
 VM ramdisk         : ""
 VM memory (MB)     : "64"
 VM IP address(es)  : "130.207.98.36; 169.254.1.1"

VM block device(s) : "phy:loop1,sda1,w"
VM cmdline :
"ip=130.207.98.36:169.254.1.0:130.207.98.1:255.255.255.0::eth0:off root=/dev/sda1 ro 4 VMID=1 usr=/dev/sda6"
Error looking up phy:loop1

Can someone please help me with this error?

Thanks,
Sanjay

------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________ Xen-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

Quoted 10 lines

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#4 lore raw

Hi Matthieu,
Will this ip="off" option disable the network connection?
When I tried to boot new domain with the ip="off" option,
the DHCP problem went away and it reported that various devices (e.g. NIC, Graphics card etc.) have been removed from the system (I am using the same disk image as dom0 but with xenU kernel).
further down the boot processes, some of my network services (e.g NFS) don't work.

any ideas?

----------------------------------
http://www.cc.gatech.edu/~ksanjay/

Quoted 164 lines · Matthieu PATOU

add the parameter (ip "off") in your domain configuration file it will add the parameter ip=off on the kernel boot line and so everything will be ok
mat

Quoted 158 lines · Sanjay Kumar

Hi Mark,
I switched to Xen2.0 with linux 2.4.27 kernel for dom0

now I create the virtual disk in the same way as I described below.

now when I try to boot another domain i see problems with DHCP. below are the logs

Using config file "/etc/xen/dom1".
Started domain ExampleDomain, console on port 9609 ************ REMOTE CONSOLE: CTRL-] TO QUIT ********
Linux version 2.4.27-xenU (root@andrea) (gcc version 3.1.1) #3 Tue Oct 19 13:56:24 EDT 2004
On node 0 totalpages: 16384
zone(0): 4096 pages.
zone(1): 12288 pages.
zone(2): 0 pages.
Kernel command line: ip=:1.2.3.4::::eth0:dhcp root=/dev/hda1 ro 4 Initializing CPU#0
Xen reported: 2193.379 MHz processor.
Calibrating delay loop... 4404.01 BogoMIPS
Memory: 62768k/65536k available (1341k kernel code, 2768k reserved, 267k data, 60k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes) Inode cache hash table entries: 4096 (order: 3, 32768 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
CPU: L1 I cache: 12K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Intel(R) Pentium(R) 4 CPU 2.20GHz stepping 04
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 [email protected]). Event-channel device installed.
Xen virtual console successfully installed as tty
Starting Xen Balloon driver
pty: 256 Unix98 ptys configured
[XEN] Initialising virtual block device driver
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 [XEN] Initialising virtual ethernet driver.
[XEN] Netfront recovered tx=0 rxfree=0
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192) Sending DHCP requests ....... timed out

Here Sending DHCP requests keep timing out and it keeps retrying. so boot doesn't proceed beyond this point.

Can anybody please let me know what I might be doing wrong.

Thanks,
Sanjay

----------------------------------
http://www.cc.gatech.edu/~ksanjay/

Quoted 20 lines · M.A. Williamson
Quoted 3 lines

Hi Folks,
I am using xen1.2.
I create the disk image as described in the Xen2.0 user manual

chapter 5.
Sorry but that won't work :-(

Xen 1.2 can only export sections of physical disks (e.g. partitions, whole disks, or Xen Virtual Disks) to other domains. If you want to store filesystems in disk files, you should move to Xen 2.0-beta (soon to be Xen 2.0-release).

The nearest you can get on Xen 1.2 is to create a Virtual Disk and then use that. Tying yourself to 1.2 is probably not a good idea though - Virtual Disks aren't supported by 2.0. We'd certainly prefer people to move to 2.0 now - it's stable and virtually release-ready and has a whole load of new features, improved tools and better
hardware support.
A good way to install a new domain's filesystem is using debootstrap (as described in the appendix of the manual).

Quoted 56 lines

Let us know how you get on.

HTH,
Mark

Quoted 50 lines

#dd if=/dev/zero of=vm1disk bs=1k seek=6144k count=1
#losetup /dev/loop1 vm1disk
#mkfs -t ext3 /dev/loop1
#mount /dev/loop1 /mnt

#cp -ax /<directory>/ /mnt/ /* I do this instead of
copying the whole / directory because I don't want some of the
directories in Dom 1 */
I modify /mnt/etc/fstab to put /dev/sda1 to root

 # umount /dev/loop1

then I put this line in /etc/xc/defaults (I used a copy of it called dom1)

vbd_list = [ ('phy:loop1','sda1','w' ) ]

After this I try to create the dom1 by saying but I get an error.

#xc_dom_create.py -D vmid=1 -f dom1
Parsing config file 'dom1'

 VM image           : "/boot/xenolinux.gz"
 VM ramdisk         : ""
 VM memory (MB)     : "64"
 VM IP address(es)  : "130.207.98.36; 169.254.1.1"

VM block device(s) : "phy:loop1,sda1,w"
VM cmdline :
"ip=130.207.98.36:169.254.1.0:130.207.98.1:255.255.255.0::eth0:off root=/dev/sda1 ro 4 VMID=1 usr=/dev/sda6"
Error looking up phy:loop1

Can someone please help me with this error?

Thanks,
Sanjay

------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________ Xen-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#5 lore raw

Why do you mean by "have been removed" ?
I use a lightweight kernel for xenU so it might be why i don't see message about device removed....

Have you try to connect to the domain console ? (xm console <domain_name>) ? If so can you check your network configuration ... what are the network service messages ?

Is your ip not duplicated ?
for your information my kernel command line is the following ... and everything is ok ...

Kernel command line: ip=off root=/dev/hdb1 ro

Mat

Quoted 9 lines · Sanjay Kumar

Hi Matthieu,
Will this ip="off" option disable the network connection? When I tried to boot new domain with the ip="off" option, the DHCP problem went away and it reported that various devices (e.g. NIC, Graphics card etc.) have been removed from the system (I am using the same disk image as dom0 but with xenU kernel).
further down the boot processes, some of my network services (e.g NFS) don't work.

Quoted 175 lines

any ideas?

----------------------------------
http://www.cc.gatech.edu/~ksanjay/

Quoted 166 lines · Matthieu PATOU

add the parameter (ip "off") in your domain configuration file it will add the parameter ip=off on the kernel boot line and so everything will be ok
mat

Quoted 160 lines · Sanjay Kumar

Hi Mark,
I switched to Xen2.0 with linux 2.4.27 kernel for dom0

now I create the virtual disk in the same way as I described below.

now when I try to boot another domain i see problems with DHCP. below are the logs

Using config file "/etc/xen/dom1".
Started domain ExampleDomain, console on port 9609 ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** Linux version 2.4.27-xenU (root@andrea) (gcc version 3.1.1) #3 Tue

 Oct 19 13:56:24 EDT 2004
 On node 0 totalpages: 16384
 zone(0): 4096 pages.
 zone(1): 12288 pages.
 zone(2): 0 pages.
 Kernel command line:  ip=:1.2.3.4::::eth0:dhcp root=/dev/hda1 ro 4
 Initializing CPU#0
 Xen reported: 2193.379 MHz processor.
 Calibrating delay loop... 4404.01 BogoMIPS
 Memory: 62768k/65536k available (1341k kernel code, 2768k reserved,
 267k data, 60k init, 0k highmem)
 Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
 Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
 Mount cache hash table entries: 512 (order: 0, 4096 bytes)
 Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
 Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
 CPU: L1 I cache: 12K, L1 D cache: 8K
 CPU: L2 cache: 512K
 CPU: Intel(R) Pentium(R) 4 CPU 2.20GHz stepping 04
 POSIX conformance testing by UNIFIX
 Linux NET4.0 for Linux 2.4
 Based upon Swansea University Computer Society NET3.039
 Initializing RT netlink socket
 Starting kswapd
 Journalled Block Device driver loaded
 Installing knfsd (copyright (C) 1996 [email protected]).
 Event-channel device installed.
 Xen virtual console successfully installed as tty
 Starting Xen Balloon driver
 pty: 256 Unix98 ptys configured
 [XEN] Initialising virtual block device driver
 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024
 blocksize loop: loaded (max 8 devices)
 SCSI subsystem driver Revision: 1.00
 kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno =
 2 kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno
 = 2 [XEN] Initialising virtual ethernet driver.
 [XEN] Netfront recovered tx=0 rxfree=0
 NET4: Linux TCP/IP 1.0 for NET4.0
 IP Protocols: ICMP, UDP, TCP
 IP: routing cache hash table of 512 buckets, 4Kbytes
 TCP: Hash tables configured (established 4096 bind 8192)
 Sending DHCP requests .......  timed out

Here Sending DHCP requests keep timing out and it keeps retrying. so boot doesn't proceed beyond this point.

Can anybody please let me know what I might be doing wrong.

Thanks,
Sanjay

----------------------------------
http://www.cc.gatech.edu/~ksanjay/

Quoted 76 lines · M.A. Williamson
Quoted 3 lines

Hi Folks,
I am using xen1.2.
I create the disk image as described in the Xen2.0 user manual

chapter 5.
Sorry but that won't work :-(

Xen 1.2 can only export sections of physical disks (e.g. partitions, whole disks, or Xen Virtual Disks) to other domains. If you want to store filesystems in disk files, you should move to Xen 2.0-beta (soon to be Xen 2.0-release).

The nearest you can get on Xen 1.2 is to create a Virtual Disk and then use that. Tying yourself to 1.2 is probably not a good idea though - Virtual Disks aren't supported by 2.0. We'd certainly prefer people to move to 2.0 now - it's stable and virtually release-ready and has a whole load of new features,
improved tools and better hardware support.
A good way to install a new domain's filesystem is using debootstrap (as described in the appendix of the manual).

Let us know how you get on.

HTH,
Mark

Quoted 43 lines

#dd if=/dev/zero of=vm1disk bs=1k seek=6144k count=1
#losetup /dev/loop1 vm1disk
#mkfs -t ext3 /dev/loop1
#mount /dev/loop1 /mnt

#cp -ax /<directory>/ /mnt/ /* I do this instead of
copying the whole / directory because I don't want some of the
directories in Dom 1 */
I modify /mnt/etc/fstab to put /dev/sda1 to root

  # umount /dev/loop1

then I put this line in /etc/xc/defaults (I used a copy of it called dom1)

vbd_list = [ ('phy:loop1','sda1','w' ) ]

After this I try to create the dom1 by saying but I get an
error.
#xc_dom_create.py -D vmid=1 -f dom1
Parsing config file 'dom1'

  VM image           : "/boot/xenolinux.gz"
  VM ramdisk         : ""
  VM memory (MB)     : "64"
  VM IP address(es)  : "130.207.98.36; 169.254.1.1"

VM block device(s) : "phy:loop1,sda1,w"
VM cmdline :
"ip=130.207.98.36:169.254.1.0:130.207.98.1:255.255.255.0::eth0:
off
root=/dev/sda1 ro 4 VMID=1 usr=/dev/sda6"
Error looking up phy:loop1

Can someone please help me with this error?

Thanks,
Sanjay

Quoted 8 lines

------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________ Xen-devel mailing list [email protected]

Quoted 1 line

https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersj
ournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#6 lore raw
Quoted 1 line

Will this ip="off" option disable the network connection?

No, assuming you configure networking within your rc scripts, either by DHCP or an ifcfg-eth0 file.

Quoted 6 lines
Quoted 6 lines

When I tried to boot new domain with the ip="off" option, the DHCP problem went away and it reported that various devices (e.g. NIC, Graphics card etc.) have been removed from the system (I am using the same disk image as dom0 but with xenU kernel).
further down the boot processes, some of my network services (e.g NFS) don't work.

In the xenU kernel you don't see the real hardware devices -- you have the virtual netfront and blkfront devices. Either hit 'remove' in kudzu a few times or just disable kudzu altogether -- it's generally no use in an unprivileged domain.

Ian

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl