Re: how to mount a disk in Ubuntu Virtual Machine on Win7
On 3 Mar 2014, at 8:04 am, Rajeev Prasad rp.ne...@yahoo.com wrote: The second HDD comes from a NAS which stopped working. FS on HDD is ext4. windows is not showing the disk, so i guess it has no control over it. I want to mount the disk on ubuntu VM running on this win7 machine and transfer data. this is what is visible right now... (sda is the VMware disk). pl give suggestions. Seems the Google consensus is to use http://www.diskinternals.com/linux-reader/ rather than go the VM route. Positive reports from Win7/8/8.1 users. As for mounting any physical device in a Linux VM, it depends on the the virtualisation framework you’re using. VirtualBox you’d modify the VM whilst it’s off but basically 1. plug the device in (via USB) 2. go to the VM’s settings dialogue 3. Select Ports-USB 4. Click the icon with a green “+” symbol and select the USB device you plugged in (step #1), then click “OK” 5. Boot VM - your device should be available. Mount and do whatever you need. Cheers, James smime.p7s Description: S/MIME cryptographic signature -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: Dropped packets with bonded interface
Hi Albert, See below… On 12/11/2011, at 3:58 AM, Albert Chin wrote: I'm running 11.10 on an Intel SR2625URLXR system with an Intel S5520UR motherboard and an Intel E1G42ET Dual Port Server Adapter. I'm getting dropped packets on a bonded interface: $ ifconfig -a ... bond0 Link encap:Ethernet HWaddr 00:1b:21:b7:21:ea BROADCAST PROMISC MASTER MULTICAST MTU:1500 Metric:1 RX packets:2472 errors:0 dropped:2472 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:306528 (306.5 KB) TX bytes:272 (272.0 B) --- 8 --- Snipped $ cat /etc/network/interfaces ... auto bond0 iface bond0 inet manual bond-slaves none bond_mode 802.3ad bond_miimon 100 auto eth2 iface eth2 inet manual bond-master bond0 auto eth3 iface eth3 inet manual bond-master bond0 2. Why isn't the bond0 interface up? The dropped packets on bond0 are probably control packets the kernel is ignoring because you haven't enslaved any interfaces. Which leads to question 2. Try modifying the iface bond0 stanza in /etc/network/interfaces: auto bond0 iface bond0 inet manual bond-slaves eth2 eth3 # No slaves == nothing for bond0 to bind to! bond_mode 802.3ad bond_miimon 100 You might want to add an updelay in there too if your interfaces take a little while to synchronise with the switch (easy for the switch to block the port until spanning tree has done its thing unless you've specify portfast on the switch port). Then bounce the network and see what happens. When it's all running properly, you should see something like this: # cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009) Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer2 (0) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: slow Aggregator selection policy (ad_select): stable Active Aggregator Info: Aggregator ID: 1 Number of ports: 2 Actor Key: 17 Partner Key: 53 Partner Mac Address: 74:ea:3a:ba:35:e4 Slave Interface: eth0 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:08:9b:c4:a6:f4 Aggregator ID: 1 Slave Interface: eth1 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:08:9b:c4:a6:f5 Aggregator ID: 1 As always, there's some documentation to read: https://help.ubuntu.com/community/UbuntuBonding Cheers, James smime.p7s Description: S/MIME cryptographic signature -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: Backups
On 20/04/2011, at 12:33 AM, Michael Terry wrote: Hello! I'm doing a bit of research for my proposal for Ubuntu Desktop to install the GNOME-based Déjà Dup backup tool by default. (btw, please cc: me) I get the sense that command line backup methods are thick on the ground. Is there a backup tool that the Ubuntu Server project recommends? Is the program duplicity [1] (upon which Déjà Dup is based) well regarded in the server community? I'm curious if there is any mindshare overlap at all. [1] http://duplicity.nongnu.org/ I've always been a big Bacula fan. There's a *really* good Webmin module for it and if you absolutely must have a dedicated GUI try bat (Qt-based Bacula front end). I've been using Bacula for quite a few years in both professional and personal duties using various backup media (DVD, HDD, Tape - including autoloaders) to/from multiple systems and never had any problems. Usual disclaimers apply and YYMV ;) Good luck, James smime.p7s Description: S/MIME cryptographic signature -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: Sharing hosts.deny
On 25/10/2010, at 12:41 PM, Michael wrote: On 10/22/2010 01:16 AM, Tapas Mishra wrote: I wanted to know if there is any place where people have shared these IPs which needs to be blocked I feel most of the time the entries must be common though not always.So if hosts.deny file is shared some where then give a link.(I do use auth.log to note IPs to block) I have a bunch of entries in my hosts file with the 127.0.0.1 line added. I have always seen the hosts.deny and hosts.allow files but never know how to use them. When I google hosts.deny it says something about blocking a range of IP addresses. Is it safe to assume that using hosts.deny is more effective/better than just adding entries to the hosts file? The /etc/hosts.{allow,deny} are part of tcp wrappers (ie, inetd/xinetd) and have very little to do with host resolution (which is what /etc/hosts is for). Normally, when I need to block an IP address I throw it at iptables (the firewall) which is the correct place for it in a lot of (read most) situations. However, if Tapas Mishra (the OP) is trying to use tcp wrappers to limit access to certain services, then sharing /etc/hosts.{allow,deny} via NFS etc, then symlink /etc/hosts{allow,deny} to /path/to/NFS/hosts.{allow,deny} should work. Keep in mind the inetd/xinetd will probably need a SIGHUP (at least) to pick up any changes in these files - I can't say for certain, I don't use inetd/xinetd for anything these days, and can't remember its nuances. HUPing the inetd/xinetd on each host is rather onerous and will probably lead to service interuptions. YMMV Cheers, James -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: Sharing hosts.deny
On 25/10/2010, at 10:28 PM, Tapas Mishra wrote: On Mon, Oct 25, 2010 at 4:42 PM, Ahmed Kamal ahmed.ka...@canonical.com wrote: Don't know what the general consensus is, but I've almost never really used hosts.deny in real production. iptables just does everything I need. OP might want to consider this Yes I do want to use IPTABLES but I noticed using IPTABLES to deny services on Virtual Machines which run on Vmware causes the VMs to disconnect from internet.Not sure what port Vmware needs to be open so that the VM (Virtual Machine) can be accessed from outside. I use IPTABLES on host and guest both. OK - so theres a little gem :) DONT try to filer services on a guest at the hypervisor layer! The hypervisor (VMware) couldn't care less about the traffic destined for a guest, its firewall is only concerned about traffic destined for the hypervisor. Filter the guests' traffic on the GUEST, and only the guest. If you have a virtual switch you might want to do some fancy VLAN tagging voodoo to do pseudo-hypervisor filtering, but that's probably heading into the why bother end of the discussion. Just filter the traffic for the guest on the guest's firewall and all will be well with the world :) Cheers, James -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: Problem with no display on 10.04 beta2 server
On 11/04/2010, at 7:15 PM, Janåke Rönnblom wrote: I have an IBM 3550 server where I have installed the 10.04 beta2 server on. On reboot after the BIOS messages all I get is a blinking cursor and then it disappears. If I try ALT+F1/F2, ENTER and so nothing happens no login prompt nothing! Connecting through ssh works but I fear the day when I need to troubleshoot the server at the console... -J What happens if you ssh in, edit /boot/grub/menu.lst and modify the default kernel parameters to remove quiet splash (or if that fails, try include text), then reboot. See if that makes any difference to the result. Might be telling grandma how to suck eggs, but this little trick has revealed volumes in the past. I know it should Just Work but this might help isolate the fault. My initial guess is there is something a bit henky with the frame buffer support. Cheers, James smime.p7s Description: S/MIME cryptographic signature -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: Problem with no display on 10.04 beta2 server
On 11/04/2010, at 8:06 PM, Alvin wrote: On Sunday 11 April 2010 11:59:58 James Gray wrote: On 11/04/2010, at 7:15 PM, Janåke Rönnblom wrote: I have an IBM 3550 server where I have installed the 10.04 beta2 server on. On reboot after the BIOS messages all I get is a blinking cursor and then it disappears. If I try ALT+F1/F2, ENTER and so nothing happens no login prompt nothing! Connecting through ssh works but I fear the day when I need to troubleshoot the server at the console... -J What happens if you ssh in, edit /boot/grub/menu.lst and modify the default kernel parameters to remove quiet splash (or if that fails, try include text), then reboot. See if that makes any difference to the result. Might be telling grandma how to suck eggs, but this little trick has revealed volumes in the past. I know it should Just Work but this might help isolate the fault. My initial guess is there is something a bit henky with the frame buffer support. In the past, it might have, but I tried this on a desktop edition of Lucid beta and it was a bad idea. Boot halted (because of the bug where you can't mount more than 4 lvm volumes.) Without splash and quiet, you can see the messages, but not the buttons you have to press to skip mounting the volume. But if it gets as far as mounting the file systems, surely it's well into the boot process at that stage...unless you have 4 LVM volumes for the root file system (??). Not 100% sure I'm following you - booting with the quiet splash you see nothing, and other than that, boots fine. So how would removing them to see the boot process cause the filesystem mounts to fail?? Cheers, James smime.p7s Description: S/MIME cryptographic signature -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam