View previous topic :: View next topic |
Author |
Message |
grapefruithoarder2000 n00b
Joined: 19 Feb 2024 Posts: 11
|
Posted: Fri Mar 08, 2024 3:26 pm Post subject: Running qemu-system-aarch64 on x86_64 system? |
|
|
Hello. So i have been playing around with quite a lot of different virtual machines, configurations, operating systems etc..
I wanted to try emulating some other architecture with qemu and had quite the problems trying to get it to work.
Currently i am trying to install debian for my virtual machine but i really don't get what i'm doing wrong. Whenever i run the command where i install to the debian.img then qemu just seems to start in some weird monitor mode? Its some kind of command line for qemu but i dont really know why that is starting up.
The result that i expect to happen is that it boots my debian.iso
But actually it just starts in this command line Qemu monitor mode...
This is the command i use:
Code: | qemu-system-aarch64 -machine virt -cdrom debian.iso -boot d -hda debian.img -m 16000 |
Need some directions _________________ If you are a false don't entry
The nuclear drums will crush your brain
Because you'll be burned and died |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Fri Mar 08, 2024 11:16 pm Post subject: |
|
|
Hi there,
This is a command for a different system so modify it. Set up the image with qemu-nbd, Arch Linux has information about that. Include authorized_keys for ssh access. The base I used was from an already installed .zip file, Devuan trial arm images.
Code: | qemu-system-arm -M virt -serial stdio -display none \
-rtc base=utc -m 2048 -smp 2 \
-drive if=none,file=disk-armhf.img,format=qcow2,id=hd \
-device virtio-blk-device,drive=hd \
-netdev user,id=inet,hostfwd=tcp:127.0.0.1:3124-:22 \
-device virtio-net-device,netdev=inet \
-kernel kv -initrd ki -append 'root=/dev/vda1 ro' |
Also you may want console login, if so branch from rc.local for a root shell:
Code: | bash -i >/dev/console </dev/console & |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|