From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Liu Subject: Re: Fail to create disk.img (SOLVED) Date: Tue, 5 Aug 2008 19:50:40 +0800 (CST) Message-ID: <834455.97062.qm@web35204.mail.mud.yahoo.com> References: <20080805111453.GD13674@ralph.linux2go.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT To: kvm@vger.kernel.org Return-path: Received: from web35204.mail.mud.yahoo.com ([66.163.179.83]:35923 "HELO web35204.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757480AbYHELul (ORCPT ); Tue, 5 Aug 2008 07:50:41 -0400 In-Reply-To: <20080805111453.GD13674@ralph.linux2go.dk> Sender: kvm-owner@vger.kernel.org List-ID: --- Soren Hansen wrote: > On Tue, Aug 05, 2008 at 06:37:09PM +0800, Stephen Liu wrote: > > # kvm -hdb ubuntu6.06_080805.img -cdrom /dev/scd0 -m 512 -boot d > -smp > > 2 -vnc :9 (starting) > > Here, you're attaching your disk image to /dev/hdb. > > > # kvm ubuntu6.06_080805.img -vnc :0 > > Here... not so much. Hi Soren, I got it. Thanks Xterm-1 # kvm -hdb ubuntu6.06_080805.img -vnc :0 starting Xterm-2 $ vncviewer 192.168.0.110:0 Viewer starts. Also Ubuntu6.06 start to boot. Finally I can login as user as well as root. In these couple days I made heavy googling and found many documents. Because I can't get the guest to ping website (it can update/upload files on repo). However the more I read more confuse I'm. If creating the disk.img running; $ sudo kvm -hda disk.img -cdrom ........ I can start the guest with; $ kvm disk.img ip-address..... (without -hda) If creating the disk.img running; $ sudo kvm -hdb disk.img -cdrom ...... I must run; $ kvm -hdb disk.img ip-address..... (must add -hdb) I'm NOT very clear, WHY? I'm following; https://help.ubuntu.com/community/KVM#Creating%20a%20network%20bridge%20on%20the%20host trying to sort out the problem on networking On running $ sudo kvm-bridge -m 512 -hdb disk.img -cdrom /dev/scd0 -boot d -smp 2 nohup: appending output to `nohup.out' It always appends output to `nohup.out' I'm still struggling. B.R. Stephen > > viewer starts displaying; > > ..... > > Booting the kernel > > ..... > > Alert! /dev/hdb1 does not exist. Dropping to a shell! > > Obviously, since what you called /dev/hdb during installation is now > /dev/hda. Send instant messages to your online friends http://uk.messenger.yahoo.com