Create a virtual floppy
Autoyast requires a file that contains the answers to the installer's questions. It can be on a floppy disk. As I do not have a floppy drive, I will use a virtual floppy here which is a file. So, create a file that has exactly the size of a floppy disk by opening a console and typing:dd if=/dev/zero of=floppy.img bs=1024 count=1440
Format this floppy:
mkfs.msdos floppy.img
Mount this floppy:
mkdir /mnt/loop
mount -o loop floppy.img /mnt/loop
Create a file autoinst.xml that looks like this.
Copy the autoinst.xml to the virtual floppy
cp autoinst.xml /mnt/loop
Unmount the virtual floppy.
umount /mnt/loop
Create your virtual machine
yast -i VirtualBox
Start VirtualBox with the command
VirtualBox
VirtualBox, in this case with 4 virtual machines |
Create a new virtual machine without harddisk: Click on New -> Next -> enter "autoyast" as name for your virtual machine -> Next -> enter 1024 GB RAM -> Next -> un-tag "Start-up Disk" -> Next -> Continue -> Create
Insert the SUSE 12.2 DVD into the machine:
Click on the virtual machine "autoyast" -> Settings -> Storage -> IDE Controller -> add CD/DVD drive -> add the SUSE 12.2 DVD. Click on the + sign to add a floppy controller. Add the virtual floppy that we called floppy.img. It should look like this:
"Inserting" a virtual DVD and floppy into your virtual machine |
Your virtual machine starting from SUSE DVD using your autoyast floppy |
Insert the USB stick into your physical computer. Use VirtualBox to attach the USB stick to the virtual machine. First, attach the "Generic Mass Storage Device", then your USB stick becomes visible (in this example it is the SanDisk Cruzer Blade). Select both so the virtual machine will be able to see the USB stick
Telling your virtual machine it has access to the USB stick |
Final confirmation |
After installation, the system will try to reboot to do the initial configuration. This will fail because VirtualBox cannot boot from USB. However you can use the bootstick now.
Keine Kommentare:
Kommentar veröffentlichen