Re: Networking IP Address Issues : NetBSD on Xen VM
On 04/07/2012 05:52, dhaneshk k wrote: > Please ignore my previous mail with the same subject line because there was > a terrible formatting mistake. > Please see the attached pdf which briefs the problem in assigning the IP > address to the netbsd virtual machine. > The Xen VM is running on Debian/ GNU Linux. > > Please find the attached document for detailed description. > > Any hints much appreciated. Why do you think asking about NetBSD on a FreeBSD list is going to give you better reesults than asking about NetBSD on a NetBSD list? Or even on a Xen list? Out of all the information in your message, you describe the actual issues pretty baldly. -- unable to set the IP number in a Xen instance * How exactly did you try to set the IP Address manually? * What happened? Showing ifconfig(8) output for the interface concerned would be good. -- avoiding the necessity for human interaction when booting on Amazon EC2 Your description looks as if the netbsd image is stopping at single user mode, which it will do if there are certain problems. A typical reason for this would be the need to run fsck to fix filesystem problems, but there are many other possible causes. Look at the console output just before it prompts you for which shell to run to work out what the actual problem is. Once you've got the system booting up to multi-user correctly, the normal init scripts should take care of running dhclient etc. for you, given that you have configured them properly. Cheers, Matthew PS. FreeBSD runs well as a Xen domU (ie guest) instance, both on generic Xen and on Amazon EC2. See http://wiki.freebsd.org/FreeBSD/Xen FreeBSD doesn't have Xen dom0 (ie host) support yet. -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: Networking IP Address Issues : NetBSD on Xen VM
On 04-Jul-2012, at 10:22 AM, dhaneshk k wrote: > > List, > > Please ignore my previous mail with the same subject line because there was > a terrible formatting mistake. > Please see the attached pdf which briefs the problem in assigning the IP > address to the netbsd virtual machine. > The Xen VM is running on Debian/ GNU Linux. I am assuming you are trying to get a bridge setup working. What is the bridge configuration in dom0? On a separate note, your email still is not proper. Learn to put contents in an email rather describing your problem in a PDF. Thanks -- Subhro Sankha Kar System Administrator Working and Playing with FreeBSD since 2002 > > >> From: sub...@80386.org >> Date: Wed, 4 Jul 2012 00:06:56 +0530 >> To: dhanes...@hotmail.com >> CC: freebsd-questions@freebsd.org >> Subject: Re: Networking IP Address Issues : NetBSD on Xen VM >> >> >> On 03-Jul-2012, at 12:34 PM, dhaneshk k wrote: >> >>> >>> The Same problems >>> discussed here were faced. >>> >>> Any hints to solve these issues much appreciated. >> >> No hints till you learn how to format your email properly, a basic >> requirement when posting to a mailing list. >> >>> >>> Thank you >> >> You are welcome. >> >> Subhro >> >> -- >> Subhro Sankha Kar >> System Administrator >> Working and Playing with FreeBSD since >> 2002___ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: Networking IP Address Issues : NetBSD on Xen VM
List, Please ignore my previous mail with the same subject line because there was a terrible formatting mistake. Please see the attached pdf which briefs the problem in assigning the IP address to the netbsd virtual machine. The Xen VM is running on Debian/ GNU Linux. Please find the attached document for detailed description. Any hints much appreciated. Thanks in advance, Dhanesh > From: sub...@80386.org > Date: Wed, 4 Jul 2012 00:06:56 +0530 > To: dhanes...@hotmail.com > CC: freebsd-questions@freebsd.org > Subject: Re: Networking IP Address Issues : NetBSD on Xen VM > > > On 03-Jul-2012, at 12:34 PM, dhaneshk k wrote: > > > > > The Same problems > > discussed here were faced. > > > > Any hints to solve these issues much appreciated. > > No hints till you learn how to format your email properly, a basic > requirement when posting to a mailing list. > > > > > Thank you > > You are welcome. > > Subhro > > -- > Subhro Sankha Kar > System Administrator > Working and Playing with FreeBSD since > 2002___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" NETBSD-AS-A-VIRTUAL-MACHINE-IPAddress_Issues.pdf Description: Adobe PDF document ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Networking IP Address Issues : NetBSD on Xen VM
On 03-Jul-2012, at 12:34 PM, dhaneshk k wrote: > > The Same problems > discussed here were faced. > > Any hints to solve these issues much appreciated. No hints till you learn how to format your email properly, a basic requirement when posting to a mailing list. > > Thank you You are welcome. Subhro -- Subhro Sankha Kar System Administrator Working and Playing with FreeBSD since 2002___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Networking IP Address Issues : NetBSD on Xen VM
List, Little bit offtopic of FreBSD, Hope some one can help with some suggestions.. The Objective is to port NetBSD as a Virtual Machine into Cloud. Steps Involved in Porting NetBSD as a Virtual Machine: Porting of NetBSD as a Virtual Machine involves 2 steps. A. Porting NetBSD w.r.t Virtualization B. Porting NetBSD w.r.t Cloud MiddleWare If Step 1 is completed successfully, then only Step2 could be proceeded. A. Porting NetBSD w.r.t Virtualization: We use Xen Virtualization.Xen Virtualization involves the following steps. Various methods are available to port NetBSD as Virtual Machine in Xen 1. Building from ISO ( Via Paravirtualization - Using NetBSD community provided Kernel / Full Virtualization - using Qemu ) 2. Building the NetBSD File System from the Source We have tried both the ways. 1.1 Building from ISO ( Via Paravirtualization - Using NetBSD community provided Kernel ): 1. Get the ISO file of NetBSD Operating System . 2. Build the IMG File from the ISO File by using NetBSD community provided Kernel Refer : http://www.netbsd.org/ports/xen/howto.html 1.2 Building from ISO ( Via Full virtualization - Using Qemu): Refer: http://open.eucalyptus.com/wiki/creating-images-iso-xen By following the above Step, the following version of NetBSD Image was built. Version NetBSD 5.1 Kernel XEN3_DOMU Kernel Version NetBSD netbsd51.yourdomain.org 5.1 NetBSD 5.1 (XEN3_DOMU) #0: Sat Nov 6 13:17:16 UTC 2010 bui...@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/amd64/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/amd64/compile/XEN3_DOMU amd64 Architecture amd64 / 64 Bit Guest Virtual Machine Working Components : The NetBSD Guest is booted successfully in Multi User Mode, which enables root user to create / delete files / directories. The Network Interface is xennet0 The File System details are as follows. Filesystem Size Used Avail %Cap Mounted on /dev/xbd0a 9.5 GB 628 MB 8.4 GB 6% / kernfs 1.0K 1.0K 0B 100% /kern ptyfs 1.0K 1.0K 0B 100% /dev/pts procfs 4.0K 4.0K 0B 100% /proc Issues Faced: Unable to set IP Address manually (or) via dhclient command. Even though static IP Address is assigned, netmask,gateway is set, the NetBSD Guest Virtual Machine is unable to connect to outside Network; Machines in outside network are also unable to connect to the NetBSD Guest Virtual Machine . Please shed some light on this, Why this issue occurs ? Or doing wrong way? 2. Building the NetBSD File System and Kernel from the Source: NetBSD Image could be built by connecting to the NetBSD repository, download the Source packages, compile and build the Kernel and the NetBSD File System; at last convert the NetBSD File System into a single Image via makefs command. I compiled 64 Bit NetBSD Kernel and 64 Bit NetBSD File System. B. Porting NetBSD into Cloud MiddleWare: Porting NetBSD into Cloud Middleware involves bundling , uploading and registering Kernel, RamDisk and Machine Image into Cloud. The NetBSD Image has been uploaded into cloud and a sample Virtual Machine was run Successfully in our Cloud Setup (192.168.1.6). Refer : http://blog.netbsd.org/tnf/entry/netbsd_now_runs_under_amazon By following this procedure, the following version of NetBSD Image was built. Version NetBSD 6.99.8 Kernel XEN3_DOMU Kernel Version NetBSD 6.99.8 NetBSD 6.99.8 (XEN3_DOMU) #0: Fri Jun 29 21:55:59 IST 2012 root@pancdaccloud:/home/src/usr/obj/sys/arch/amd64/compile/XEN3_DOMU amd64 Architecture amd64 / 64 Bit Guest Virtual Machine Working Components : The Network Interface is xennet0 IP Address was obtained successfully via dhclient command. The NetBSD Guest Virtual Machine is able to connect to outside Network; Machines in outside network are also able to connect to the NetBSD Guest Virtual Machine . The File System details are as follows. Filesystem Size Used Avail %Cap Mounted on root_device 255 MB 135 MB 107 MB 55% / tmpfs 1.4 MB 632 KB 840 KB 42% /dev Issues Faced: 1.The NetBSD Guest is booted in Single User Mode, which disables root user to create / delete files / directories.The Filesystem is mounted in read-only mode. Why the box going to Single user mode? Am I doing wrong ? Common Issues: There are certain places where Human Intervention is required.While NetBSD Virtual Machine Guest is being booted, at first it asks for default Interpreter (/bin/sh).At this situation, User is required to give a value and press Enter Key.After getting input from the User, System Services are