https://taste.tuxfamily.org/wiki/index.php?title=Build_TASTE_on_QEMU_1.0_for_Windows_platforms&feed=atom&action=historyBuild TASTE on QEMU 1.0 for Windows platforms - Revision history2024-03-29T07:34:39ZRevision history for this page on the wikiMediaWiki 1.29.0https://taste.tuxfamily.org/wiki/index.php?title=Build_TASTE_on_QEMU_1.0_for_Windows_platforms&diff=13&oldid=prevTtsiodras: 1 revision imported2017-08-04T21:01:50Z<p>1 revision imported</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style='vertical-align: top;' lang='en'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 21:01, 4 August 2017</td>
</tr><tr><td colspan='2' style='text-align: center;' lang='en'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Ttsiodrashttps://taste.tuxfamily.org/wiki/index.php?title=Build_TASTE_on_QEMU_1.0_for_Windows_platforms&diff=12&oldid=prevMaxime-esa: /* Build TASTE on QEMU 1.0 for Windows platforms */2014-02-25T08:45:21Z<p><span dir="auto"><span class="autocomment">Build TASTE on QEMU 1.0 for Windows platforms</span></span></p>
<p><b>New page</b></p><div>= Build TASTE on QEMU 1.0 for Windows platforms =<br />
<br />
This page is for advanced users who wish to create their own TASTE installation from scratch on a virtual machine running QEMU.<br />
<br />
This guide walks through all the necessary steps to have a virtual i386 machine running [http://en.wikipedia.org/wiki/Debian Debian] with the TASTE toolset installed. [http://en.wikipedia.org/wiki/Qemu QEMU 1.0] is used as a PC system emulator on a Windows platform. Also, note that the virtual machine running Debian is console based.<br />
<br />
== Installing QEMU 1.0 for Windows ==<br />
First, download QEMU 1.0 for Windows from [http://lassauge.free.fr/qemu/]. Extract the downloaded zip to a directory of your choosing (e.g. ''C:\Qemu'').<br />
<br />
== Installing Debian on QEMU 1.0 ==<br />
To provide the Debian virtual machine with full networking capabilities a [http://en.wikipedia.org/wiki/TUN/TAP TAP interface] needs to be used. This requires installing a [http://en.wikipedia.org/wiki/Vpn VPN] on the host OS and establish a bridge with the host's physical network. To do so, download [http://swupdate.openvpn.org/community/releases/openvpn-2.2.2-install.exe OpenVPN 2.2.2] and install it.<br />
<br />
Then, go to: ''Control Panel\Network and Internet\Network Connections''. You will see a new network interface. Rename it with a simple name like ''QemuTap''. <br />
<br />
Now, use [http://en.wikipedia.org/wiki/Internet_Connection_Sharing ICS] to share the connection of the physical Ethernet/WiFi network interface with ''QemuTap''. Right click on the Ethernet/WiFi network interface that is connected to the Internet and select ''Properties'', then ''Sharing'' and then select ''Allow other network users to connect through this computer's Internet connection'' and select ''QemuTap''.<br />
<br />
After, right click on the ''QemuTap'' network interface and select ''Properties'', select ''Internet Protocol Version 4 (TCP/IPv4)'' and click on ''Properties'', select ''Use the following IP address'' and enter and IP address and submask (e.g. 192.168.10.1/255.255.255.0).<br />
<br />
Download Debian Squeeze stable netinst from: http://www.debian.org/CD/netinst/#netinst-stable. Place the Debian ISO image in the QEMU directory previously created (e.g. ''C:\Qemu'').<br />
<br />
Now, navigate to the directory, press ''Shift + right mouse button'' in the directory and select ''Open command window here''.<br />
<br />
The next step is to create a virtual hard disk drive to allocate the virtual machine with Debian. This is accomplished with the following:<br />
:<syntaxhighlight lang="dos"><br />
C:\Qemu>qemu-img.exe create -f raw assertvm.img 5G<br />
</syntaxhighlight><br />
:<syntaxhighlight lang="dos"><br />
Formatting 'assertvm.img', fmt=raw size=5368709120<br />
</syntaxhighlight><br />
<br />
This command will create a [http://en.wikipedia.org/wiki/Sparse_file sparse file] (under a NTFS file system it will only use the required memory and not the whole 5 GB) called ''assertvm.img'' with the capacity to grow up to 5GB. The ''raw'' image is a plain binary file of the disc image which is very portable.<br />
<br />
Using the same command window type the following to start the Debian installation:<br />
:<syntaxhighlight lang="dos" enclose="div"><br />
C:\Qemu>qemu-system-i386.exe -L bios -m 512 -hda assertvm.img -net nic -net tap,ifname=QemuTap -localtime -no-acpi -cdrom debian-6.0.4-i386-netinst.iso -boot d<br />
</syntaxhighlight><br />
<br />
Notice that ''bios'' is the folder inside the QEMU directory with the BIOS, VGA BIOS and keymaps. ''assertvm.img'' is the previously created virtual hard disk drive. ''QemuTap'' is the name given to the virtual network interface. Finally, ''debian-6.0.4-i386-netinst.iso'' is the file name for the Debian ISO.<br />
<br />
A window will open with the Debian install screen. Select ''Advanced Options\Expert Install''. Follow the instructions and configure the Debian machine to your needs. Have in mind the following pointers:<br />
* There should not be any need to load components from the CD in ''Load installer components from CD''.<br />
* The network has to be configured manually assigning an IP address from the same subnet used for the virtual network interface (e.g. 192.168.10.0/255.255.255.0) and adding as gateway the virtual network's interface IP (e.g. 192.168.10.1).<br />
* For ''Select and install software'' only the ''SSH server'' should be selected to achieve a minimal install with a ssh server.<br />
<br />
Once the installation is finished you should be able to access your new Debian virtual machine using the following command:<br />
:<syntaxhighlight lang="dos" enclose="div"><br />
C:\Qemu>qemu-system-i386.exe -L bios -m 512 -hda assertvm.img -net nic -net tap,ifname=QemuTap -localtime -no-acpi<br />
</syntaxhighlight><br />
<br />
== Building the TASTE toolchain ==<br />
Take a look at [[Manual installation on a native platform]].</div>Maxime-esa