![]() ![]() You have to run with sudo because virtio-net required root permission.Īt the very end of the installation, don't forget to choose "Install the GRUB boot loader to the master boot record" Start your virtual machine and install Ubuntu in text mode installer: $ sudo. Xhyve $MEM $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD -f kexec,$KERNEL,$INITRD,"$CMDLINE"ĭon't forget to chmod the script file, so you can execute it: $ chmod x up.sh Then install Ubuntu to the virtual hard disk.ĬMDLINE="earlyprintk=serial console=ttyS0 acpi=off" ![]() Now, we create a new bash script to init and start up a virtual machine with xhyve, that use our hdd.img as a virtual hard disk and ubuntu.iso as a virtual CD. In this post, we create a 3GB disk named hdd.img $ dd if=/dev/zero of=hdd.img bs=1g count=3 Create start up script for Ubuntu installation Create virtual hard disk imageĬreate a virtual hard disk image so you can install your Linux distro on it. $ cp /Volumes/Ubuntu-Server\ 14/install/initrd.gz. $ cp /Volumes/Ubuntu-Server\ 14/install/vmlinuz. The ISO file now mounted at "Ubuntu-Server 14" volume. Now we can mount the ISO file to copy the necessary files: $ hdiutil attach /tmp/tmp.iso $ dd if=ubuntu.iso bs=2k skip=1 > /tmp/tmp.iso $ dd if=/dev/zero bs=2k count=1 of=/tmp/tmp.iso We need a little hack to mount it.Ĭreate a cloned ISO file named /tmp/tmp.iso of Ubuntu ISO disk. Since OS X does not recognize the file system of Ubuntu ISO. We need to pass the kernel and ramdisk file to xhyve manually. Install Ubuntu on xhyve Prepare the kernel and initrdīecause xhyve does not support BIOS or EFI booter. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |