Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
notebook
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
notebook
Commits
3b500610
There was an error fetching the commit references. Please try again later.
Commit
3b500610
authored
4 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
Update qemu.md
parent
3cc1f126
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qemu.md
+21
-6
21 additions, 6 deletions
qemu.md
with
21 additions
and
6 deletions
qemu.md
+
21
−
6
View file @
3b500610
...
@@ -7,20 +7,29 @@ Read this doc before doing manual networking. Use default (ignore -net/-nic/-net
...
@@ -7,20 +7,29 @@ Read this doc before doing manual networking. Use default (ignore -net/-nic/-net
https://www.qemu.org/2018/05/31/nic-parameter/
https://www.qemu.org/2018/05/31/nic-parameter/
```
```
ip l add veth1 type veth
echo 0 > /proc/sys/net/bridge/bridge-nf-call-iptables
echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_querier
echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping
ip tuntap add vnic3 mode tap
ip tuntap add vnic2 mode tap
ip tuntap add vnic2 mode tap
ip tuntap add vnic1 mode tap
ip tuntap add vnic1 mode tap
ip tuntap add vnic0 mode tap
ip tuntap add vnic0 mode tap
ip l add br0 type bridge
ip l add br0 type bridge
#################################
ip l set vnic3 master br0
ip l set veth1 master br0
ip l set vnic2 master br0
ip l set vnic2 master br0
ip l set vnic1 master br0
ip l set vnic1 master br0
ip l set vnic0 master br0
ip l set vnic0 master br0
ip l set enp4s0 master br0
ip l set eno1 master br0
dhclient br0
ip l set vnic3 up
ip l set vnic2 up
ip l set vnic1 up
ip l set vnic0 up
ip l set br0 up
ip l set eno1 up
dhcpcd br0
```
```
## go
## go
...
@@ -31,6 +40,12 @@ https://wiki.archlinux.org/index.php/QEMU
...
@@ -31,6 +40,12 @@ https://wiki.archlinux.org/index.php/QEMU
sudo qemu-system-x86_64 t2.img -m 1G --enable-kvm -nic tap,ifname=veth1,script=no,downscript=no,mac=10:11:11:11:11:10
sudo qemu-system-x86_64 t2.img -m 1G --enable-kvm -nic tap,ifname=veth1,script=no,downscript=no,mac=10:11:11:11:11:10
sudo qemu-system-x86_64 t1.img -m 1G --enable-kvm -net nic,macaddr=10:11:11:11:11:11 -net tap,ifname=vnic0,script=no,downscript=no
sudo qemu-system-x86_64 t1.img -m 1G --enable-kvm -net nic,macaddr=10:11:11:11:11:11 -net tap,ifname=vnic0,script=no,downscript=no
qemu-system-x86_64 -cdrom ~/Downloads/android-x86_64-7.1-r2.iso -boot order=d -drive file=rand.img,format=raw -m 4G
qemu-system-x86_64 -cdrom ~/Downloads/android-x86_64-7.1-r2.iso -boot order=d -drive file=rand.img,format=raw -m 4G
# nohup qemu-system-x86_64 workbox-win.qcow2 -m 10G -cpu host -smp 8 -vnc :9 --enable-kvm -nic tap,ifname=vnic0,script=no,downscript=no,mac=10:11:11:11:11:10 -usb -device usb-host,hostbus=1,hostaddr=17 & disown
# nohup qemu-system-x86_64 workbox-win.qcow2 -m 10G -cpu host -smp 8 -vnc :9 --enable-kvm -nic tap,ifname=vnic0,script=no,downscript=no,mac=10:11:11:11:11:10 -usb -device usb-host,vendorid=0x08e6,productid=0x3437 & disown
nohup qemu-system-x86_64 -drive file=workbox-win.qcow2,if=virtio -m 10G -cpu host -smp 8 -vnc :9 --enable-kvm -nic tap,ifname=vnic0,script=no,downscript=no,mac=10:11:11:11:11:10 & disown
nohup qemu-system-x86_64 git-server-box.qcow2 -m 1G -cpu host -smp 1 -vnc :8 --enable-kvm -nic tap,ifname=vnic1,script=no,downscript=no,mac=10:11:11:11:11:18 & disown
```
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment