Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Sep 2012 09:26:02 -0500
From:      Martin McCormick <martin@dc.cis.okstate.edu>
To:        FreeBSD-Questions@freebsd.org
Subject:   Virtual FreeBSD9.0 ISO Image Won't Mount Root FS
Message-ID:  <201209051426.q85EQ2pl050337@x.it.okstate.edu>

next in thread | raw e-mail | index | archive | help
	The ISO image is the FreeBSD9.0 bootonly CDROM for amd64
systems. I added loader.conf to /boot in order to activate a
serial console and this along with socat appears to be working
as it should. This is great because remote desktop is not an
option.

	The VM boot starts normally with the spinning bars and
normal startup messages until:

cd0: cd present [85585 x 2048 byte records]
Timecounter "TSC" frequency 3368628976 Hz quality 800
Trying to mount root from cd9660:/dev/iso9660/FREEBSD_INSTALL [ro]...
mountroot: waiting for device /dev/iso9660/FREEBSD_INSTALL ...
Mounting from cd9660:/dev/iso9660/FREEBSD_INSTALL failed with error 19.

Loader variables:
  vfs.root.mountfrom=cd9660:/dev/iso9660/FREEBSD_INSTALL
  vfs.root.mountfrom.options=ro

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:tank
        cd9660:/dev/acd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/acd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot>

	I enter a Question Mark.

mountroot> ?

List of GEOM managed disk devices:
  iso9660/CDROM cd0 ada0

mountroot>

	The host system is a fairly new 64-bit Macintosh which
is using VirtualBox. Here is the script to define the new
machine.

VBoxManage createvm --name "vsys" --ostype FreeBSD_64 --register
VBoxManage modifyvm "vsys" --memory 1000 --vram 128 --acpi on \
--boot2 dvd --boot1 disk --nic1 nat
#setup ttyu0 so the VM can communicate.
VBoxManage modifyvm "vsys" --uart1 0x3F8 4
VBoxManage -q modifyvm "vsys" --uartmode1 server '/tmp/vmx'
VBoxManage createhd --filename "FreeBSD.VMDK" --size 10000
VBoxManage storagectl x --name "SATA Controller" --add sata --controller \
 IntelAHCI --hostiocache on
 VBoxManage storageattach x --storagectl "SATA Controller" \
 --port 0 --device 0 --type hdd --medium "FreeBSD.VMDK"

VBoxManage storagectl "vsys" --name "IDE Controller" \
      --add ide --controller PIIX4
VBoxManage storageattach "vsys" --storagectl "IDE Controller" \
      --port 0 --device 0 --type dvddrive --medium /users/sysbuild/headless.iso



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