Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2001 10:08:40 -0700
From:      "Brian O'Shea" <boshea@ricochet.net>
To:        freebsd-hackers@freebsd.org
Subject:   Making an existing VMware virtual disk "dangerously dedicated"
Message-ID:  <20010712100840.G401@shaolin.hq.netapp.com>

next in thread | raw e-mail | index | archive | help
Hello,

I have installed FreeBSD 4.2-RELEASE in a VMware virtual machine (more
background information[1] at the end of this message) and I've found
that I can not boot the system without first booting from CD and then
loading the kernel from the virtual disk.  If I try to boot from the
virtual disk, it hangs after printing:

    F1   FreeBSD

    Default: F1


(Yes, I tried pressing F1)

At this point, the only option is to reset the system, boot from CD,
load the kernel from the virtual disk, and boot:

    BTX loader 1.00  BTX version is 1.01
    Console: internal video/keyboard
    BIOS drive A: is disk0
    BIOS drive B: is disk1
    BIOS drive C: is disk2
    BIOS 636kB/130048kB available memory

    FreeBSD/i386 bootstrap loader, Revision 0.8
    (jkh@bento.FreeBSD.org, Mon Nov 20  11:41:23 GMT 2000)
    -
    Hit [Enter] to boot immediately, or any other key for command prompt.
    Booting [kernel] in 9 seconds...


    Type '?' for a list of commands, 'help' for more detailed help.
    ok load disk2s1a:/kernel
    ok boot

So, I would like to try skipping this stage and making the virtual disk
fully dedicated (i.e. no boot manager).  I looked this up in the
handbook and it gave some instructions, which I tried.   It didn't seem
to work:

(from <http://www.freebsd.org/tutorials/formatting-media/x64.html>)

# dd if=/dev/zero of=/dev/ad2 count=2
# disklabel /dev/ad2 | disklabel -B -R -r ad2 /dev/stdin

Note: I wouldn't be doing the above if I didn't have a backup from which
I knew I could restore my system.

The disklabel(8) man page was also helpful, however I couldn't figure
out how to use disklabel to make an existing disk fully dedicated.

If there is no way to do this, I will re-install the system.  This is a
good option, although it is difficult to get it to work because it
usually panics while probing devices.

Any help is much appreciated.

Regards,
-brian


1.  Background:
    Intel Pentium III 700MHz
    VMware GSX Server 1.0.1 Build 999 running on Linux kernel 2.2.14-5.0
    FreeBSD 4.2-RELEASE installed in a virtual machine
    Disk type is VMware virtual disk (i.e. not a physical partition)

-- 
Brian O'Shea
<boshea@ricochet.net>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010712100840.G401>